package com.jv.own.staticproxy;

import com.jv.own.User;
import com.jv.own.UserDao;

public class UserDaoProxy implements UserDao {
	private UserDao dao;
	public UserDaoProxy(UserDao dao){
		this.dao = dao;
	}
	@Override
	public User query(String name) {
		System.out.println("静态代理  执行 before");
		dao.query("ss");
		System.out.println("静态代理  执行 after");
		return null;
	}
}
